//
//  InsteonInfoCommand.m
//  Shion
//
//  Created by Chris Karr on 12/18/07.
//  Copyright 2007-2008 Audacious Software. All rights reserved.
//

#import "InsteonInfoCommand.h"


@implementation InsteonInfoCommand

- (NSData *) commandData
{
	unsigned char bytes[] = {0x02,0x40, 0x01,0xA4, 0x00,0x06, 0xFD,0x88, 0x00,0x00,0x00, 0x0F,0x03,0x00};
	// unsigned char bytes[] = {0x02,0x40, 0x01,0xA4, 0x00,0x06, 0xFD,0x88, 0x00,0x00,0x00, 0x0F,0x0d,0x00};

	NSMutableData * data = [NSMutableData dataWithBytes:bytes length:14];
	
	if (address != nil)
		[data replaceBytesInRange:NSMakeRange (8, [address length]) withBytes:[address bytes]];

	return data;
}

@end
